package org.apache.dubbo.samples.seata.api;

/**
 * @author xiaobing
 * @version 1.0
 * @date 2024/9/7 17:01
 */
public interface StockService {
    /**
     * deduct
     *
     * @param commodityCode
     * @param count
     */
    void deduct(String commodityCode, int count);

    /**
     * batch deduct
     *
     * @param commodityCode
     * @param count
     */
    void batchDeduct(String commodityCode, int count);
}
